package com.lshtv.web;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.apache.log4j.Logger;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.servlet.ModelAndView;

/**
 * 通用的异常页面
 * 
 * @author danjingyu
 * @version $Id: ErrorController.java, v 0.1 2013-5-11 下午4:56:09 danjingyu Exp $
 */
@Controller
@RequestMapping("/error.htm")
public class ErrorController {
    private Logger logger = Logger.getLogger(ErrorController.class);

    @RequestMapping(method = RequestMethod.GET)
    public ModelAndView handleRequest(HttpServletRequest httpservletrequest,
                                      HttpServletResponse httpservletresponse) throws Exception {
        ModelAndView view = new ModelAndView("home/error");
        return view;
    }
}
